﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ThemSanPham.ascx.cs" Inherits="DoAnLTUD.WebUserControl.ThemSanPham" %>
<style type="text/css">
    .auto-style1
    {
        width: 100%;
    }
</style>

<table class="auto-style1" style="font-family: 'Times New Roman', Times, serif">
    <tr>
        <td>
            <asp:Label ID="Label1" runat="server" Text="Tên sản phẩm"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTenSanPham" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server" Text="Gia"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtGia" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="Thông tin"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtThongTin" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" Text="Loại sản phẩm"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="dropMaLoai" runat="server" DataSourceID="ObjectDataSource1" DataTextField="TenLoai" DataValueField="MaLoai">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="getAllLoaiSP" TypeName="BO.LoaiSPController"></asp:ObjectDataSource>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label5" runat="server" Text="Số lượng"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtSoLuong" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label6" runat="server" Text="Hình ảnh"></asp:Label>
        </td>
        <td>
            <asp:FileUpload ID="fileUploadHinhAnh" runat="server" />
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label7" runat="server" Text="Mã nhà sản xuất"></asp:Label>
        </td>
        <td>
            <asp:DropDownList ID="dropMaNhaSanXuat" runat="server" DataSourceID="ObjectDataSource2" DataTextField="TenNSX" DataValueField="MaNSX">
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" SelectMethod="getAllNhaSanXuat" TypeName="BO.NhaSanXuatController"></asp:ObjectDataSource>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label8" runat="server" Text="Giá nhập"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtGiaNhap" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label9" runat="server" Text="Tinh trạng"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtTinhTrang" runat="server"></asp:TextBox>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label10" runat="server" Text="Label"></asp:Label>
        </td>
        <td>
            <asp:Button ID="btnThem" runat="server" OnClick="btnThem_Click" Text="Thêm" />
            <asp:Button ID="btnHuy" runat="server" OnClick="btnHuy_Click" Text="Hủy" />
        </td>
        <td>&nbsp;</td>
    </tr>
</table>

